<!DOCTYPE html>
<html>

<head>
    <title>print</title>
    <meta charset="utf-8">
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    <!--<style media="print">-->
    <!--@page {-->
        <!--size: auto;-->
        <!--margin: 0mm;-->
    <!--}-->
    <!--</style>-->
    <style>
        @page:right{
            @bottom-left {
                margin: 10pt 0 30pt 0;
                border-top: .25pt solid #666;
                content: "Our Cats";
                font-size: 9pt;
                color: #333;
            }


            @bottom-right {
                margin: 10pt 0 30pt 0;
                border-top: .25pt solid #666;
                content: counter(page);
                font-size: 9pt;
            }


            @top-right {
                content:  string(doctitle);
                margin: 30pt 0 10pt 0;
                font-size: 9pt;
                color: #333;
            }
        }
    </style>
</head>

<body>
    <table>
        <tr>
            <td colspan="4" style="font-size: large;text-align: center">云上芭蕾</td>
        </tr>
        <tr>
            <td colspan="4" style="font-size: large;text-align: center">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: left;font-size: smaller">单号 L2018042521381252565152</td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: left;font-size: smaller">收银员 10019</td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: center">———————————————</td>
        </tr>
        <tr>
            <td style="width: 25mm;">商品</td><td>数量</td>
            <td>单价</td><td>小计</td>
        </tr>
        <tr style="font-size: smaller;">
            <td colspan="4" style="text-align: left">百利甜情人 尺寸: 5寸</td>
        </tr>
        <tr style="font-size: smaller;">
            <td style="width: 25mm"></td>
            <td>1</td>
            <td>0.02</td>
            <td>0.02</td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: center">———————————————</td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: left;font-size: smaller">总数量：1 余额：￥0.02</td>
        </tr>
        <tr>
            <td colspan="4" style=";text-align: center">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: left">欢迎您再次光临</td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: left">2018-04-25 21:38:12</td>
        </tr>
    </table>
</body>

<script type="text/javascript">
$(function(){
    function print_page() {
        if (!!window.ActiveXObject || "ActiveXObject" in window) {
            remove_ie_header_and_footer();
        }
        window.print();
    };
})


function remove_ie_header_and_footer() {
    var hkey_root, hkey_path, hkey_key;
    hkey_path = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
    try {
        var RegWsh = new ActiveXObject("WScript.Shell");
        RegWsh.RegWrite(hkey_path + "header", "");
        RegWsh.RegWrite(hkey_path + "footer", "");
    } catch (e) {}
}
</script>

</html>
